﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PaperWorld.ORM;

namespace PaperWorld.ORM.Tests
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            //PaperWorld.ORM.User user = new PaperWorld.ORM.User
            //{
            //    ID = Guid.NewGuid(),
            //    Username = "admin",
            //    Password = "admin888",
            //    Email = "admin@admin.com",
            //    Avatar = "--",
            //    Money = 0,
            //    FullName = "admin",
            //    PaperCount = 0,
            //    GradeCount = 0,
            //    CommentCount = 0,
            //    PapersCount = 0,
            //    ReviewCount = 0,
            //    Credit = 100000,
            //    AimedEnglishLevel = "1",
            //    CurrentEnglishLevel = "0"
            //};

            var c = new DataContext().GetContext();
            //var p = c.Users.Add(user);
            //int a = c.SaveChanges();
            Assert.IsNotNull(c);
        }
    }
}
